package com.gzhryc.shared_device.oem.code.agent.dao.db;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.Join;
import com.gzhryc.jdbc.annotaion.PrimaryKey;
import com.gzhryc.jdbc.annotaion.Table;

import java.io.Serializable;
import java.util.Date;

@Table(name = "agent_level_menu_rel")
public class AgentLevelMenuRel implements Serializable {

    private static final long serialVersionUID = 1L;

	@PrimaryKey
    @Column
	protected Integer level;

    @PrimaryKey
    @Column(name = "menu_id")
    protected Long menuId;

    @Column(name = "update_date", autoUpdateTime = true)
    protected Date updateDate;

    @Column(name = "create_date")
    protected Date createDate;

    @Join(fromField = "menu_id")
    protected AgentMenu menu;


	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public AgentMenu getMenu() {
        return menu;
    }

    public void setMenu(AgentMenu menu) {
        this.menu = menu;
    }
}
